package club.banyuan;

public class Main {
    public static void main(String[] args) {
        Book book = new Book();
        EBook eBook = new EBook();
        PaperBook paperBook = new PaperBook();

        Book bookNew = new Book("书籍",100,50,200);
        EBook eBookNew = new EBook("电子书",20,10,1000,3.5);
        PaperBook paperBookNew = new PaperBook("纸质书",150,70,300,2.5);

        System.out.println(bookNew.profit());
        System.out.println(eBookNew.profit());
        System.out.println(paperBookNew.profit());
    }
}
